package person.csx.meeting.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName meeting
 */
@TableName(value ="meeting")
@Data
public class Meeting implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer meetingid;
    private String meetingname;
    private Integer roomid;
    private Integer reservationistid;
    private Integer numberofparticipants;
    private Date starttime;
    private Date endtime;
    private Date reservationtime;
    private Date canceledtime;
    private String description;
    private String status;
//    @TableField(exist = false)
//    private static final long serialVersionUID = 1L;
//
//    @Override
//    public boolean equals(Object that) {
//        if (this == that) {
//            return true;
//        }
//        if (that == null) {
//            return false;
//        }
//        if (getClass() != that.getClass()) {
//            return false;
//        }
//        Meeting other = (Meeting) that;
//        return (this.getMeetingid() == null ? other.getMeetingid() == null : this.getMeetingid().equals(other.getMeetingid()))
//            && (this.getMeetingname() == null ? other.getMeetingname() == null : this.getMeetingname().equals(other.getMeetingname()))
//            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()))
//            && (this.getReservationistid() == null ? other.getReservationistid() == null : this.getReservationistid().equals(other.getReservationistid()))
//            && (this.getNumberofparticipants() == null ? other.getNumberofparticipants() == null : this.getNumberofparticipants().equals(other.getNumberofparticipants()))
//            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
//            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
//            && (this.getReservationtime() == null ? other.getReservationtime() == null : this.getReservationtime().equals(other.getReservationtime()))
//            && (this.getCanceledtime() == null ? other.getCanceledtime() == null : this.getCanceledtime().equals(other.getCanceledtime()))
//            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
//            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
//    }
//
//    @Override
//    public int hashCode() {
//        final int prime = 31;
//        int result = 1;
//        result = prime * result + ((getMeetingid() == null) ? 0 : getMeetingid().hashCode());
//        result = prime * result + ((getMeetingname() == null) ? 0 : getMeetingname().hashCode());
//        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
//        result = prime * result + ((getReservationistid() == null) ? 0 : getReservationistid().hashCode());
//        result = prime * result + ((getNumberofparticipants() == null) ? 0 : getNumberofparticipants().hashCode());
//        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
//        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
//        result = prime * result + ((getReservationtime() == null) ? 0 : getReservationtime().hashCode());
//        result = prime * result + ((getCanceledtime() == null) ? 0 : getCanceledtime().hashCode());
//        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
//        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
//        return result;
//    }
//
//    @Override
//    public String toString() {
//        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
//        sb.append(" [");
//        sb.append("Hash = ").append(hashCode());
//        sb.append(", meetingid=").append(meetingid);
//        sb.append(", meetingname=").append(meetingname);
//        sb.append(", roomid=").append(roomid);
//        sb.append(", reservationistid=").append(reservationistid);
//        sb.append(", numberofparticipants=").append(numberofparticipants);
//        sb.append(", starttime=").append(starttime);
//        sb.append(", endtime=").append(endtime);
//        sb.append(", reservationtime=").append(reservationtime);
//        sb.append(", canceledtime=").append(canceledtime);
//        sb.append(", description=").append(description);
//        sb.append(", status=").append(status);
//        sb.append(", serialVersionUID=").append(serialVersionUID);
//        sb.append("]");
//        return sb.toString();
//    }
}